<template>
  <div>
    <lay-header />
    <lay-nav />
    <transition name="slide" mode="out-in">
      <router-view />
    </transition>
    <lay-footer />
  </div>
</template>

<script>
import { LayHeader, LayFooter, LayNav } from '@/views/layout'
import { loadCompanyInfo, loadProductCategory } from './store/mutation-types'
import { mapActions } from 'vuex'

export default {
  created() {
    this[loadCompanyInfo]()
    this[loadProductCategory]()
  },
  methods: {
    ...mapActions([loadCompanyInfo, loadProductCategory])
  },
	components: {
    LayHeader,
    LayFooter,
    LayNav
  }
}
</script>
<style lang="scss">
</style>
